package cn.topcodes.tcsf.app.web.controller.api.protocol;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by Unicorn on 2018/1/16.
 */
@Data
public class FindPassword {

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "新密码不能为空")
    @Length(min = 6, max = 40, message = "密码长度为6~40个字符")
    private String password;
}
